import { showLoadingToast, closeToast } from "vant";

let loading;
/**
 * 打开加载
 * @param msg 
 */
export const openLoad = (msg) => {
    loading = showLoadingToast({
        duration:0,
        message:msg?msg:'加载中...',
        forbidClick:true
    })
}

/**
 * 关闭加载
 */
export const closeLoad = () => {
    closeToast();
}